package com.my12306.third.model.vo;

import javax.validation.constraints.NotNull;
import java.util.Objects;

/**
 * @Author:苏牧夕
 * @Date:2020/7/3 2:13
 * @Version 1.0
 */
public class SmsVo {
    /**
     * 手机号
     */
    @NotNull
    String phone;
    /**
     * 内容
     */
    String content;
    /***
     * uuid
     */
    @NotNull
    String uuid;

    public SmsVo(String phone, String content, String uuid) {
        this.phone = phone;
        this.content = content;
        this.uuid = uuid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SmsVo)) return false;
        SmsVo smsVo = (SmsVo) o;
        return Objects.equals(getPhone(), smsVo.getPhone()) &&
                Objects.equals(getContent(), smsVo.getContent()) &&
                Objects.equals(getUuid(), smsVo.getUuid());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getPhone(), getContent(), getUuid());
    }

    @Override
    public String toString() {
        return "SmsVo{" +
                "phone='" + phone + '\'' +
                ", content='" + content + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}
